package com.xbongbong.sso.domain.dao;

import com.xbongbong.sso.domain.entity.OauthParamEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface OauthParamDao {
    Long insert(OauthParamEntity entity);

    void insertBatch(List<OauthParamEntity> list);

    OauthParamEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(OauthParamEntity entity);

    List<OauthParamEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    Long deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);
}